<?php slot('title', sprintf("Categories - Aion Tools Kit")); ?>
<?php $max = sfConfig::get('app_items_per_category') ?>

<div class="category">
  <div class="feed">
    <a href="">Feed</a>
  </div>
  <h2>Armors</h2>
  <?php
    $armors = Doctrine_Core::getTable('GameArmor')->getArmors($max);
    include_partial('armor/list', array('armors' => $armors));
  ?>
  <a href="<?php echo url_for('armor_list') ?>/1">
    And <?php echo Doctrine_Core::getTable('GameArmor')->countArmors() ?> more ...
  </a>
</div>

<div class="category">
  <div class="feed">
    <a href="">Feed</a>
  </div>
  <h2>Weapons</h2>
  <?php
    $weapons = Doctrine_Core::getTable('GameWeapon')->getWeapons($max);
    include_partial('weapon/list', array('weapons' => $weapons));
  ?>
  <a href="<?php echo url_for('weapon_list') ?>/1">
    And <?php echo Doctrine_Core::getTable('GameWeapon')->countWeapons() ?> more ...
  </a>
</div>

<div class="category">
  <div class="feed">
    <a href="">Feed</a>
  </div>
  <h2>Accessories</h2>
  <?php
    $accessories = Doctrine_Core::getTable('GameAccessory')->getAccessories($max);
    include_partial('accessory/list', array('accessories' => $accessories));
  ?>
  <a href="<?php echo url_for('accessory_list') ?>/1">
    And <?php echo Doctrine_Core::getTable('GameAccessory')->countAccessories() ?> more ...
  </a>

</div>